package cn.dgut.training.e;

import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor
public enum  Status {

    SUCCESS(0,"ok"),
    ERROR(-1,"error"),
    GOODS_UNSHELVE(900,"商品下架"),
    GOODS_NO_STOCK(901,"库存不足"),
    NOT_LOGGED_IN(902,"未登录"),
    ORDERS_SUBMIT_ERROR(903,"订单提交异常"),
    CATEGORY_ERROR(904,"分类信息异常"),
    PAY_ERROR(905,"支付异常")
    ;

    private Integer code;

    private String Message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        Message = message;
    }
}
